import request from '@/utils/request'

/**
 * @param {预案数字化-列表查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/getPlanDigitizationList
 * @method {post}
 * @params {int} pageIndex  当前页索引
 * @params {int} pageSize  每页条数
 * @params {string} plantypeid  应急场景id
 * 
 */
export function getPlanDigitizationList(data) {
  return request({
    url: '/zy-api/api/planDigitiza/getPlanDigitizationList',
    method: 'post',
    data: data
  })
};

/**
 * @param {预案数字化-id查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/getPlanDigitizationId
 * @method {post}
 * @params {string} planlevelid  列表应急等级
 * @params {string} planID  列表planID
 * 
 */
 export function getPlanDigitizationId(data) {
  return request({
    url: '/zy-api/api/planDigitiza/getPlanDigitizationId',
    method: 'post',
    data: data
  })
};

/**
 * @param {应急预案响应-应急调度方案} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/getEmergencyYJFA
 * @method {post}
 */
 export function getEmergencyYJFA() {
  return request({
    url: '/zy-api/api/planDigitiza/getEmergencyYJFA',
    method: 'post',
    data:{}
  })
};

/**
 * @param {应急预案响应-应急专家} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/getEmergencyYJZJ

 * @method {post}
 */
 export function getEmergencyYJZJ() {
  return request({
    url: '/zy-api/api/planDigitiza/getEmergencyYJZJ',
    method: 'post',
    data:{}
  })
};

/**
 * @param {应急预案响应-应急组织} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/getEmergencyOrg
 * @method {post}
 * @params {int} pageIndex  当前页索引
 * @params {int} pageSize  每页条数
 * 
 */
 export function getEmergencyOrg(data) {
  return request({
    url: '/zy-api/api/planDigitiza/getEmergencyOrg',
    method: 'post',
    data: data
  })
};

/**
 * @param {应急预案响应-应急人员} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/getEmergencyUser
 * @method {post}
 * @params {int} pageIndex  当前页索引
 * @params {int} pageSize  每页条数
 * @params {string} oid  组织机构
 * 
 */
 export function getEmergencyUser(data) {
  return request({
    url: '/zy-api/api/planDigitiza/getEmergencyUser',
    method: 'post',
    data: data
  })
};

/**
 * @param {应急预案响应-物资仓库} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/getEmergencyWarehouse
 * @method {post}
 * @params {int} pageIndex  当前页索引
 * @params {int} pageSize  每页条数
 * 
 */
 export function getEmergencyWarehouse(data) {
  return request({
    url: '/zy-api/api/planDigitiza/getEmergencyWarehouse',
    method: 'post',
    data: data
  })
};

/**
 * @param {应急预案响应-物资列表} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/getEmergencyMaterial
 * @method {post}
 * @params {int} pageIndex  当前页索引
 * @params {int} pageSize  每页条数
 * @params {string} wareId  组织机构
 * 
 */
 export function getEmergencyMaterial(data) {
  return request({
    url: '/zy-api/api/planDigitiza/getEmergencyMaterial',
    method: 'post',
    data: data
  })
};

/**
 * @param {预案数字化-预案数字化配置} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/updPlanDigitization
 * @method {post}
 * 
 */
 export function updPlanDigitization(data) {
  return request({
    url: '/zy-api/api/planDigitiza/updPlanDigitization',
    method: 'post',
    data: data
  })
};

/** 
 * @param {场景分级管理-列表查询} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/getPlanGradeList
 * @method {post}
 * @params {int} pageIndex  当前页索引
 * @params {int} pageSize  每页条数
 * 
 */
 export function getPlanGradeList(data) {
  return request({
    url: '/zy-api/api/planDigitiza/getPlanGradeList',
    method: 'post',
    data: data
  })
};

/** 
 * @param {场景分级管理-新增} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/addPlanGrade
 * @method {post}
 * @params {string} plantypeid  	关联应急场景id
 * @params {string} leveltype  等级颜色
 * @params {string} leveldes  	应急等级
 * @params {string} emLeveldes  	应急场景
 * 
 */
 export function addPlanGrade(data) {
  return request({
    url: '/zy-api/api/planDigitiza/addPlanGrade',
    method: 'post',
    data: data
  })
};

/** 
 * @param {场景分级管理-修改} res 
 * @author 焦誉暄
 * @url http://localhost:8080/api/planDigitiza/updPlanGrade
 * @method {post}
 * @params {string} id  	应急等级id
 * @params {string} plantypeid  	关联应急场景id
 * @params {string} leveltype  等级颜色
 * @params {string} leveldes  	应急等级
 * @params {string} emLeveldes  	应急场景
 * 
 */
 export function updPlanGrade(data) {
  return request({
    url: '/zy-api/api/planDigitiza/updPlanGrade',
    method: 'post',
    data: data
  })
};
